class GetDayMonthTotalFlowVoBean {
  int code;
  String message;
  Result result;
  bool success;
  int timestamp;

  GetDayMonthTotalFlowVoBean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  GetDayMonthTotalFlowVoBean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    result =
    json['result'] != null ? new Result.fromJson(json['result']) : null;
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.toJson();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String dayTotalFlow;
  String maxInstantFlow;
  String minInstantFlow;
  String monthTotalFlow;
  String totalHeatSale;
  String totalHeating;
  String yearDayFlow;
  String yesterDayFlow;

  Result(
      {this.dayTotalFlow,
        this.maxInstantFlow,
        this.minInstantFlow,
        this.monthTotalFlow,
        this.totalHeatSale,
        this.totalHeating,
        this.yearDayFlow,
        this.yesterDayFlow});

  Result.fromJson(Map<String, dynamic> json) {
    dayTotalFlow = json['dayTotalFlow'];
    maxInstantFlow = json['maxInstantFlow'];
    minInstantFlow = json['minInstantFlow'];
    monthTotalFlow = json['monthTotalFlow'];
    totalHeatSale = json['totalHeatSale'];
    totalHeating = json['totalHeating'];
    yearDayFlow = json['yearDayFlow'];
    yesterDayFlow = json['yesterDayFlow'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['dayTotalFlow'] = this.dayTotalFlow;
    data['maxInstantFlow'] = this.maxInstantFlow;
    data['minInstantFlow'] = this.minInstantFlow;
    data['monthTotalFlow'] = this.monthTotalFlow;
    data['totalHeatSale'] = this.totalHeatSale;
    data['totalHeating'] = this.totalHeating;
    data['yearDayFlow'] = this.yearDayFlow;
    data['yesterDayFlow'] = this.yesterDayFlow;
    return data;
  }
}